

main{
    width: 100%;
    background-color:rgb(241, 243, 245);
    nav{
        width: 100%;
        height: 74px;
        overflow: hidden;
        background-color: #fff;
        div{
            width: 1200px;
            height: 100%;
            margin: 0 auto;
            display: flex;
            .logo{
                width: 204px;
                height: 34px;
                margin-top: 20px;
                cursor: pointer;
                img{
                    width: 204px;
                    height: 34px;
                }
            }
            ul{
                margin-top: 29px;
                padding-left: 40px;
                width: 950px;
                height: 16px;
                display: flex;
                li{
                    padding:0 22px;
                    line-height: 16px;
                    a{
                        &:hover{
                            color:#cf0a2c;
                        }
                    }
                }
            }
            .search{
                margin-top: 20px;
                width: 246px;                
                height: 38px;
                border-radius: 20px;
                background-color: rgb(241, 243, 245);
                div{
                    input{
                        border: none;
                        outline: none;
                        text-indent: 1em;
                        font-size: 14px;
                        border-top-left-radius: 20px;
                        border-bottom-left-radius: 20px;
                        margin-left: 5px;
                        background-color: rgb(241, 243, 245);

                    }
                    span{
                        font-size: 20px;
                        line-height: 38px;
                        opacity: .5;
                        text-align: center;
                        margin-left: 5px;
                        &:nth-of-type(2){
                            cursor: pointer;
                        }
                    }
                }
            }
        }

    }

    // 商品列表区域
    .shoplist{
        width: 1200px;
        margin: 0 auto;

        // 商品列表小导航
        .listnav{
            width: 100%;
            height: 63px;
            div{
                width: 40px;
                height: 16px;
                font-size: 12px;
                margin-top: 23.5px;                
                float: left;
                a{
                    &:hover{
                        color:rgb(207, 10, 44);
                        
                    }
                }
            }
        }

        // 商品类型
        .listtype{
            width: 100%;
            height: 240px;
            background-color: #fff;
            overflow: hidden;
            .type{
                width: 100%;
                height: 48px;
                padding: 0 24px;
                display: flex;
                font-size: 12px;
                line-height: 48px;
                &:nth-child(1){
                    margin-top: 4px;
                }
                span{
                    width: 104px;
                    color: rgb(51, 51, 51);
                    opacity: .6;
                }
                ul{
                    display: flex;
                    li{
                        width: 102px;
                        margin: 0 8px;
                        padding: 0 4px;
                        a{
                            &:hover{
                                color:rgb(207, 10, 44) ;
                            }
                        }
                    }
                }
            }
        }

        // 商品列表
        .listlist{
            width: 1212px;
            margin: 0 auto;
            margin-top: 12px;
            ul{
                width: 1212px;
                display: flex;
                flex-wrap: wrap;
                li{
                    width: 291px;
                    height: 414px;
                    display: flex;
                    flex-direction: column;
                    text-align: center;
                    background-color: #fff;
                    margin: 12px 12px 0 0;
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
                    img{
                        width: 291px;
                        height: 236px;
                        padding: 25px 55px;
                    }
                    span{
                        line-height: 28px;
                        font-size: 12px;
                        &:nth-of-type(1){
                            margin-left: 48px;
                            width: 70%;
                            font-size: 14px;
                            font-weight: 600;
                            opacity: .9;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 2; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                        &:nth-of-type(2){
                            font-size: 13px;
                            opacity: .5;
                        }
                        &:nth-of-type(3){
                            font-size: 16px;
                            color: rgb(207, 10, 44);
                        }
                        &:nth-of-type(4){
                            color: rgb(207, 10, 44);
                        }
                        &:nth-of-type(5){
                            opacity: .5;    
                        }

                    }
                }
            }
        }

        // 分页器
        .listpage{
            width: 1200px;
            height: 72px;
            margin: 0 auto;
            div{
                width: 1200px;
                height: 32px;
                margin: 48px 0 40px;
                span{
                    width: 250px;
                    float: right;
                    background-color: orange;
                }
            }
        }
    }
}